<?php
 //设置编码格式
header("Content-type: text/html; charset=utf-8");
//session_start();
@$_SESSION[views]=1;

  $times=$bb->note_idtotimes($note_id);//从数据库读取帖子浏览量
   if(@$_SESSION[views]!=0){ 
 $times!=0?$times+=1:$times=1;
   }
echo "浏览量：". $times;
//更新帖子浏览量
$query_count= "update note_info set times= $times where id = $note_id";
$aa->excu($query_count);
?>
